﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

namespace BookNet
{
    public partial class LostPassword : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                Label1.Visible = false;
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            // Validate the user against the Membership framework user store
            if (Membership.ValidateUser(Username.Text, Password.Text))
            {
                // Log the user into the site
                FormsAuthentication.RedirectFromLoginPage(Username.Text, true);
            }
            // If we reach here, the user's credentials were invalid
            Label1.Visible = true;
        }

    }
}
